Buffer.setHighlightSyntax

Controls whether syntax is highlighted in the buffer.

If @highlight is %TRUE, the text will be highlighted according to the syntax patterns specified in the [class@Language] set with [method@Buffer.set_language].

If @highlight is %FALSE, syntax highlighting is disabled and all the [class@Gtk.TextTag] objects that have been added by the syntax highlighting engine are removed from the buffer.

class Buffer
void
setHighlightSyntax
()

Parameters

highlight bool

%TRUE to enable syntax highlighting, %FALSE to disable it.

Meta